package lucene.server.database.utils;


public class DatabaseUtil {

    public static void close(Object... objsToClose) {
        for (Object obj : objsToClose) {
            if (null != obj && obj instanceof AutoCloseable) {
                try {
                    ((AutoCloseable)obj).close();
                } catch (Exception e) {

                }
            }
        }
    }
}
